From 0d42a4ad45c8e67cc31a91449cdfaccc0cb9ee84 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 17 Apr 2003 05:12:11 +0000 Subject: [PATCH] Free more nodes on the tree when we nuke a tag. Approved by Ron. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@341 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 6460378a4..636ed600b 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -881,6 +881,12 @@ void free_gpx_extras( xml_tag *tag ) if (tag->parentcdata) { xfree(tag->parentcdata); } + if (tag->tagname) { + xfree(tag->tagname); + } + if (tag->attributes) { + xfree(tag->attributes); + } next = tag->sibling; xfree(tag); tag = next; -- 2.30.2